﻿namespace ProjectMyFarmAndShe
{
    public class ItemData
    {
        public string Key { get; private set; }
        public string Name { get; private set; }
        public string Description { get; private set; }
        public string Icon { get; private set; }
        public ITool Tool { get; private set; } = null;
        

        public ItemData WithKey(string key)
        {
            Key = key;
            return this;
        }
        
        public ItemData WithName(string name)
        {
            Name = name;
            return this;
        }
        
        public ItemData WithDescription(string description)
        {
            Description = description;
            return this;
        }

        public ItemData WithIcon(string icon)
        {
            Icon = icon;
            return this;
        }

        public ItemData WithTool(ITool tool)
        {
            Tool = tool;
            return this;
        }
    }
}